package com.jinghao.tws.entity;

import com.jinghao.core.common.entity.JingHaoBaseEntity;
import com.jinghao.core.common.util.IJingHaoConfiguration.JhTable;
import com.jinghao.core.common.util.IJingHaoConfiguration.JhField;
import com.jinghao.core.common.util.IJingHaoConfiguration.JhCf;

import java.util.Date;
/**
 * (WvUploadTaskInfo)模型对象
 * 
 * @version 1.0
 * @author: 244684437@qq.com
 * 
 */
@JhTable(
	jhfields={
		@JhField(jhCf=JhCf.UNID,property="taskUnid"),
		@JhField(jhCf=JhCf.UUID,property="taskUuid")
	},
	note = ""
)
public class WvUploadTaskInfo extends JingHaoBaseEntity<WvUploadTaskInfo> {
	//======================字段列表========================
	/** 任务unid */
	private Integer	taskUnid;

	/** 任务uuid */
	private String	taskUuid;

	/** 创建时间 */
	private Date	createTime;

	/** 类型 1：摄像头信息 2：流程配置信息  3:托盘数据 4:环节任务  5：产品信息 6：环节视频信息 7：合并视频信息 8：短损视频信息 */
	private Integer	taskType;

	/** 业务唯一标识 */
	private String	workUuid;

	/** 任务级别 */
	private Integer	taskLevel;

	public Integer getTaskUnid() {
		return this.taskUnid;
	}

	public void setTaskUnid(Integer taskUnid) {
		this.taskUnid = taskUnid;
	}

	public String getTaskUuid() {
		return this.taskUuid;
	}

	public void setTaskUuid(String taskUuid) {
		this.taskUuid = taskUuid;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getTaskType() {
		return this.taskType;
	}

	public void setTaskType(Integer taskType) {
		this.taskType = taskType;
	}

	public String getWorkUuid() {
		return this.workUuid;
	}

	public void setWorkUuid(String workUuid) {
		this.workUuid = workUuid;
	}

	public Integer getTaskLevel() {
		return this.taskLevel;
	}

	public void setTaskLevel(Integer taskLevel) {
		this.taskLevel = taskLevel;
	}

	public String toString() {
		StringBuffer buffer = new StringBuffer(super.toString());
		buffer.append("\n");
		buffer.append("\ttaskUnid(任务unid):").append(taskUnid);
		buffer.append("\ttaskUuid(任务uuid):").append(taskUuid);
		buffer.append("\tcreateTime(创建时间):").append(createTime);
		buffer.append("\ttaskType(类型 1：摄像头信息 2：流程配置信息  3:托盘数据 4:环节任务  5：产品信息 6：环节视频信息 7：合并视频视频 8：短损视频信息):").append(taskType);
		buffer.append("\n");
		buffer.append("\tworkUuid(业务唯一标识):").append(workUuid);
		buffer.append("\ttaskLevel(任务级别):").append(taskLevel);
		return buffer.toString();
	}
	//==================定制内容开始======================
	 public enum EWvUploadTaskInfo {
    	/**1：摄像头信息**/
	    taskType_1(1,"摄像头信息"),
    	/**2：流程配置信息**/
	    taskType_2(2,"流程配置信息"),
	     /**3：托盘数据**/
	    taskType_3(3,"托盘数据"),
	     /**4：环节任务**/
	    taskType_4(4,"环节任务"),
	     /**5：产品信息**/
	    taskType_5(5,"产品信息"),
	     /**6：环节视频信息 **/
	    taskType_6(6,"环节视频信息 "),
	     /**7：合并视频视频**/
	    taskType_7(7,"合并视频信息"),
	     /**8：短损视频信息**/
	    taskType_8(8,"短损视频信息");
	     
    	private int key;
    	private String msg;
    	EWvUploadTaskInfo(int key,String msg) {
			this.key = key;
			this.msg=msg;
		}
    	public int getKey(){
    		return this.key;
    	}
	}
	//==================定制内容结束======================
}
